<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="e" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: z'y
  Date: 2023/12/13
  Time: 17:40
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<form action="admin/findDepartByKeys" method="GET" enctype="multipart/form-data">
    搜索：<input type="text" name="keys">
    <input type="submit">
</form>


<div class="departmentList">
    <table border="1" cellpadding="10">
        <tr>
            <th>ID</th>
            <th>部门名字</th>
            <th>父部门</th>
            <th>等级</th>
            <th>基础工资</th>
        </tr>
        <e:forEach items="${departmentList.items}" var="spit">
            <tr>
                <td><c:out value="${spit.departmentId}"/></td>
                <td><c:out value="${spit.departmentName}"/></td>
                <td><c:out value="${spit.fatherDepartmentId}"/></td>
                <td><c:out value="${spit.ranking}"/></td>
                <td><c:out value="${spit.basicSalary}"/></td>
            </tr>
        </e:forEach>
    </table>
</div>
<div>
    每页${departmentList.pageSize}位用户，
    第${departmentList.currentPageNo}/${departmentList.totalPageCount}页,共${departmentList.totalCount}位用户
    <c:if test="${spitterlist.previousPage}">
        <a href="<c:url value="/admin/checkAllDepart?pageNo=${departmentList.currentPageNo-1}" />">上一页</a>
    </c:if>
    <c:if test="${spitterlist.nextPage}">
        <a href="<c:url value="/admin/checkAllDepart?pageNo=${departmentList.currentPageNo+1}" />">下一页</a>
    </c:if>
</div>
</body>
</html>
